import { createMemoryHistory, createRouter } from 'vue-router'

const routes = [
  { path: '/', name:'home',component: ()=>import('../components/HelloWorld.vue') ,
{ path: '/home',name:'首页', component: ()=>import('../view/Index.vue') ,
{ path: '/login', name:'登录',component:()=>import ("../view/Login.vue"),
//{ path: '/search', name:'搜索',component:()=>import ("../view/Login.vue")
]

const router = createRouter({
  history: createMemoryHistory(),
  routes,
})
export default router